package co.com.services.cargainicial;

import javax.naming.NamingException;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import co.com.smart.session.DelegateContextEJB;

@Path("/SmartCargaInicialService")
public class CargaInicialService {
	@GET
	@Path("/cargaInicialMaestros")	
	@Produces(MediaType.APPLICATION_JSON)
	public Response getCargaInicialMaestros() throws NamingException {
		return Response.ok(DelegateContextEJB.getCargaInicialBeanLocal().cargainicial())
		.header("Access-Control-Allow-Origin", "*")
		.header("Access-Control-Allow-Methods", "POST, GET, PUT, UPDATE, OPTIONS")
		.header("Access-Control-Allow-Headers", "Content-Type, Accept, X-Requested-With").build();
	}
}
